﻿using MDPM.EntitiyModels.Common;
using MDPM.EntitiyModels.UserAndRoles;
using MDPM.Foundation.SpecificationsForEntityModel;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace MDPM.EntitiyModels.BusinessOrganization
{
    /// <summary>
    /// 租户部门人员
    /// </summary>
   public class OrganizationDepartmentEmployee:Entity
    {
        /// <summary>
        /// 身份证号码
        /// </summary>
        [StringLength(18, MinimumLength = 18)]
        public string IdentificationNumber { get; set; }
        /// <summary>
        /// 出生日期
        /// </summary>
        public DateTime Birthday { get; set; }
        /// <summary>
        /// 性别
        /// </summary>
        public bool Sex { get; set; }
        /// <summary>
        /// 电话号码
        /// </summary>
        [StringLength(11, MinimumLength = 11)]
        public string PhoneNumber { get; set; }
        /// <summary>
        /// 邮箱
        /// </summary>
        [EmailAddress]
        public string Email { get; set; }
        /// <summary>
        /// 微信
        /// </summary>
        [StringLength(50)]
        public string WebChat { get; set; }
        /// <summary>
        /// QQ
        /// </summary>
        [StringLength(15, MinimumLength = 3)]
        public string QQ { get; set; }
        /// <summary>
        /// 用户
        /// </summary>
        public AppUser AppUser { get; set; }
        /// <summary>
        /// 家庭地址
        /// </summary>
        public CommonAddress CommonAddress { get; set; }
        /// <summary>
        /// 所属租户组织部门
        /// </summary>
        public OrganizationDepartment OrganizationDepartment { get; set; }
        /// <summary>
        /// 劳动合同过期时间
        /// </summary>
        public DateTime LaborContractExpirationTime { get; set; }
        /// <summary>
        /// 紧急联系人
        /// </summary>
        public string EmergencyContact { get; set; }
        /// <summary>
        /// 紧急联系人电话
        /// </summary>
        public string EmergencyContactPhone { get; set; }
        /// <summary>
        /// 工号
        /// </summary>
        public string WorkNumber { get; set; }
    }
}
